package com.kabongos.activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {
    Button btClube, btTecnico, btJogador, btSair;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.tela_inicial);

        btClube = (Button) findViewById(R.id.btClube);
        btClube.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                // TODO Auto-generated method stub
                Intent i = new Intent(getApplicationContext(), ClubeActivity.class);
                startActivity(i);

            }
        });

        btJogador = (Button) findViewById(R.id.btJogador);
        btJogador.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                // TODO Auto-generated method stub
                Intent i = new Intent(getApplicationContext(), JogadorActivity.class);
                startActivity(i);

            }
        });

        btTecnico = (Button) findViewById(R.id.btTecnico);
        btTecnico.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                // TODO Auto-generated method stub
                Log.i("TESTE", "DENTRO DO ONCLICK DO BT TEC");
                Intent i = new Intent(getApplicationContext(), TecnicoActivity.class);
                Log.i("TESTE", "MEIO");
                startActivity(i);
                Log.i("TESTE", "POS AC");

            }
        });

        btSair = (Button) findViewById(R.id.btSair);
        btSair.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                finish();

            }
        });

    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }

}
